﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChildUsersList.aspx.cs"	Inherits="Admin_ChildUsersList" %>
<%@ Register Assembly="QHH.Web" Namespace="QHH.Web.UI.WebControls" TagPrefix="qhh" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>用户设备</title>



</head>
<body class="GridBody">
    <div id="divErr" runat="server" visible="false" style="font-size:1.5em;color:#f00;padding:50px;"></div>
	<form id="GridForm" runat="server">
	<div class="GridPage">
		<%--表格区域--%>
		<div class="GridTable">
			<asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="UserId" Width="100%" CssClass="GridView">
				<Columns>
					<asp:TemplateField HeaderText="操作">
						<HeaderStyle Width="3%" HorizontalAlign="Center" />
						<ItemTemplate>
						    <div class="gridToolbarDivCss">
						        <span onclick="javascript:Edit('<%# DataBinder.Eval(Container.DataItem, "UserId") %>','<%# FilterStr(Eval("NickName").ToString()) %>');return false;" class="gridtoolbarUpdata" title="编辑"></span>
						     </div>
						    <div class="gridToolbarDivCss">
						        <span onclick="javascript:View('<%# DataBinder.Eval(Container.DataItem, "UserId") %>','<%# FilterStr(Eval("NickName").ToString()) %>');return false;" class="gridtoolbarFlow" title="查看"></span>
						     </div>
						</ItemTemplate>
						<ItemStyle Wrap="False" HorizontalAlign="center" Width="3%" />
					</asp:TemplateField>
                    <asp:BoundField DataField="NickName" HeaderText="昵称">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                   <asp:BoundField DataField="Mobile" HeaderText="手机号">
                        <HeaderStyle Width="11%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                   <asp:BoundField DataField="ParentUserName" HeaderText="推荐人">
                        <HeaderStyle Width="10%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="GradeName" HeaderText="会员等级">
                        <HeaderStyle Width="8%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Sex" HeaderText="性别">
                        <HeaderStyle Width="6%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SurplusCash" HeaderText="账户余额" DataFormatString="{0:f2}">
                        <HeaderStyle Width="8%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SurplusCoin" HeaderText="果币结余" DataFormatString="{0:f0}">
                        <HeaderStyle Width="8%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="StatusTxt" HeaderText="状态">
                        <HeaderStyle Width="8%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="cdate" HeaderText="注册日期" DataFormatString="{0:yyyy-MM-dd}">
                        <HeaderStyle Width="10%" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
				</Columns>
				<RowStyle CssClass="GridViewRow" />
				<AlternatingRowStyle CssClass="AlternatingRow" />
				<SelectedRowStyle CssClass="GridViewRowSelected" />
				<HeaderStyle CssClass="GridViewHeader" />
				<FooterStyle CssClass="GridViewRow" />
			</asp:GridView>
		</div>
		<%--分页控件--%>
		<div class="GridPager">
			<qhh:Navigator ID="Navigator" runat="server" OnPageChanged="Navigator_PageChanged">
			</qhh:Navigator>
		</div>
	</div>
	<asp:HiddenField ID="hidRecordID" runat="server" />
	
	
	<script language="javascript" type="text/javascript">
	    function Add()
	    {
	        showModalWindow('新增用户', 820, 500, "UsersEdit.aspx?s=" + Math.random() + "&ID=");
	        return false;
	    }

	    function Edit(ID, UserName)
        {
            showModalWindow('修改用户:' + UserName, 820, 540, "UsersEdit.aspx?s=" + Math.random() + "&ID=" + ID);
	    }

	    function View(ID, UserName)
        {
            showModalWindow('查看' + UserName + '旗下会员:', 900, 650, "ChildUsersList.aspx?s=" + Math.random() + "&ID=" + ID);
	    }

	    function check() {
	        if (!checkSelect()) return false;
	        if (!confirm('确认继续操作?')) return false;

	        return true;
	    }
	</script>
	</form>
</body>
</html>
